package summer_vacation.xuejiahua;

import java.util.Scanner;

/**请编制程序判断输入的正整数是否既是5又是7的整倍数。若是，则输出yes；否则输出no
 * Created by Administrator on 2015/8/26.
 */
public class java_22 {public static void main(String[] args){

    System.out.println("请输入一个正整数：");
    Scanner s = new Scanner(System.in);
    int a = s.nextInt();
    if(a % 5 == 0 && a % 7 == 0){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }

}
}
